package com.project.forum.services;

import com.project.forum.model.Board;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:查询num条记录
 * User:DELL
 * Time:11:49
 */
public interface IBoradService {
    List<Board> selectByNum (Integer num);

    //根据板块Id查询板块信息
    Board selectById(Long id);

    //更新板块中的帖子数量+1
    void addOneArticleCountById(Long id);

    //板块中的帖子数量-1
    void subOneArticleCountById(Long id);

}
